import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useConfigStore = defineStore(
  'configStore',
  () => {
    const config = ref({
      // 当前页面
      page: 'camera',
      deviceId: '',
      borderWidth: '10px',
      borderColor: 'red',
      // 圆角
      round: true
    })

    return { config }
  },
  {
    persist: true
  }
)
